/**
 * @type {String}
 *
 * @properties={typeid:35,uuid:"72429268-4DE8-4DF3-AF92-E3973B0B1C0E"}
 */
var fCuit = null;

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"5826399E-CB7C-47B4-B780-8385BB85AE1C"}
 */
function Ira_proveedor_det(event) 
{
	globals.mostrarForm("proveedor_det_v2");
}

/**
 * @properties={typeid:24,uuid:"B2FDDF59-F863-4BBC-BC55-9882E5D60D32"}
 */
function solo_proveedores() 
{
	databaseManager.revertEditedRecords()
	databaseManager.setAutoSave(true);
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"6D7388C9-509E-4696-A87D-0B83E311B435"}
 * @AllowToRunInFind
 */
function buscar(event) {
	if (controller.find() == false)
	{
		globals.DIALOGS.showErrorDialog('Error','No se pudo iniciar la búsqueda','OK')
		return
	}
	cuit = fCuit
	
	if (controller.search() == 0)
	{
		globals.DIALOGS.showWarningDialog('Aviso','No se encontraron resultados','OK')
	}
}
